<?php
/**
 * User: xzq
 * Date: 2018/8/9
 * Time: 14:12
 */

namespace app\library\model;
use think\Model;

class Violation extends Model
{
    /**
     * 修改用户状态
     * @param $map
     * @param $val
     * @return bool|int
     */
    public function status($map,$val){
        $res = self::where($map)->setField('status', $val);
        return $res ? $res : false;
    }
}